package com.geeyuu.android.activity;

import com.geeyuu.android.R;
import com.geeyuu.android.utils.AndroidUtil;

import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

public class Activity3 extends BaseActivity {
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.TAG = "Activity3";
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity3_layout);
        
        initTitleBar();
        initContentViews();
        
    }

    private void initTitleBar() {
        Button topLeftButton = (Button)findViewById(R.id.top_left_button);
        topLeftButton.setVisibility(View.VISIBLE);
        topLeftButton.setText("生活");
        topLeftButton.setCompoundDrawablesWithIntrinsicBounds(R.drawable.title_icon_tab3, 0, 0, 0);
        topLeftButton.setPadding(AndroidUtil.dip2px(this, 10), 0, 0, 0);
        ViewGroup.LayoutParams vl = topLeftButton.getLayoutParams();
        if(null == vl){
            vl = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.FILL_PARENT);
        }else{
            vl.width = ViewGroup.LayoutParams.WRAP_CONTENT;
            vl.height = ViewGroup.LayoutParams.FILL_PARENT;
        }
        topLeftButton.setLayoutParams(vl);
    }

    private void initContentViews() {
        
    }
    
}
